package com.mzy.basics.utils.Java;

import java.util.stream.IntStream;

/**
 * @author Ives
 * * @date 2022/1/12
 */
public class IntStreamDemo {
  public static void main(String[] args) {
    IntStream intStream = IntStream.of(1, 2, 3);
    System.out.println(intStream);
    IntStream.range(1,20).forEach(i -> System.out.print(i+","));
    System.out.println();
    IntStream.rangeClosed(1,20).forEach(i -> System.out.print(i+","));

    System.out.println();

    System.out.println(Double.valueOf(0.2+0.1));
  }
}
